package com.wang.mandkey.bean;

import com.wang.mandkey.utils.StringUtils;

public class MouseAction extends AbstracAction {

	private int actionX;
	private int actionY;
	
	public MouseAction(String utfCode) {
		
		if(!StringUtils.isEmpty(utfCode)){
			
		String[] params=utfCode.split(":");
		
		   this.actionName=params[0];
		   this.actionX=Integer.parseInt(params[1]);
		   this.actionY=Integer.parseInt(params[2]);
		   
		}
	}
	@Override
	AbstracAction parserUtf4Action() {
		
		return this;
	}
	public int getActionX() {
		return actionX;
	}
	public void setActionX(int actionX) {
		this.actionX = actionX;
	}
	public int getActionY() {
		return actionY;
	}
	public void setActionY(int actionY) {
		this.actionY = actionY;
	}

}
